package com.haoshuang.zhouzhoubang.ui.page.welfare.shop

import com.haoshuang.zhouzhoubang.databinding.ItemShopWelfareRecordBinding
import com.haoshuang.zhouzhoubang.model.bean.ShopWelfareRecordBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 商城福利使用记录
 */
class ShopWelfareRecordAdapter(data: MutableList<ShopWelfareRecordBean>) : BaseBindingQuickAdapter<ShopWelfareRecordBean, ItemShopWelfareRecordBinding>(data) {
    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: ShopWelfareRecordBean?) {
        holder.getViewBinding<ItemShopWelfareRecordBinding>().apply {
            tvName.text = item?.store_name
            tvTime.text = item?.add_time
            tvValue.text = "-${item?.number}"
        }
    }

}